// applyMiddleware方法用于使用中间件
import { createStore, applyMiddleware } from 'redux'
import rootReducer from './reducers/reducers'
// 日志中间件
import logger from 'redux-logger'

// 1.1 利用createStore方法创建store容器对象
let store = createStore(rootReducer, applyMiddleware(logger))
export default store